package com.hnit.web.Utils;

/**
 * 订单状态枚举
 */
public enum OrderStatus {
    CANCELLED(0, "已取消"),
    PENDING_PAYMENT(1, "待支付"),
    PAID_PENDING_SHIP(2, "待发货"),
    SHIPPED(3, "已发货"),
    RECEIVED(4, "已签收"),
    COMPLETED(5, "已完成"),
    AFTER_SALE(6, "售后中"),
    REFUNDED(7, "已退款");

    private final Integer code;
    private final String description;

    OrderStatus(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}